//
//  LimitFreeUIFactory.m
//  LimitFree
//
//  Created by lijinghua on 16/3/1.
//  Copyright © 2016年 lijinghua. All rights reserved.
//

#import "LimitFreeUIFactory.h"

@implementation LimitFreeUIFactory

+ (UIButton*)createButton:(CGRect)frame title:(NSString*)title titleColor:(UIColor*)titleColor{
    UIButton *button = [[UIButton alloc]initWithFrame:frame];
    [button setTitle:title forState:UIControlStateNormal];
    [button setTitleColor:titleColor forState:UIControlStateNormal];
    return button;
}

+ (UILabel*)createLabel:(CGRect)frame title:(NSString*)title font:(UIFont*)font textColor:(UIColor*)textColor{
    UILabel *label = [[UILabel alloc]initWithFrame:frame];
    label.text = title;
    label.textColor = textColor;
    label.font = font;
    return label;
}

+ (UIView*)createLineView:(UIColor*)color frame:(CGRect)frame{
    UIView *lineView = [[UIView alloc]initWithFrame:frame];
    lineView.backgroundColor = color;
    return lineView;
}

@end
